package powell.nflpredictionproject.display;

import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import powell.nflpredictionproject.database.PredictOneWeek;
import powell.nflpredictionproject.database.PredictFiveWeeks;

/**
 *
 * @author Joshua Powell
 */

/*
 * This class extends the JPanel class and is the JPanel that the user sees
 * first when running the application.
 */
public class UserPanel
        extends JPanel
{

    /*
     * This is the component and variable declarations on the class level.
     */
    private static int count = 0;
    private JLabel awayTeamDesc = new JLabel("AWAY");
    private JLabel homeTeamDesc = new JLabel("HOME");
    private JLabel pickTeamDesc = new JLabel("                                                           "
            + "Pick A Team To Predict Over The Next Five Weeks");
    private JButton calculateOne = new JButton("Predict One Week");
    private JButton calculateFive = new JButton("Predict Five Weeks");
    private static String result1;
    private static String result2;
    private static String result3;
    private static String result4;
    private static String result5;
    private String[] teamNames =
    {
        "Arizona Cardinals",
        "Atlanta Falcons",
        "Baltimore Ravens",
        "Buffalo Bills",
        "Carolina Panthers",
        "Chicago Bears",
        "Cincinnati Bengals",
        "Cleveland Browns",
        "Dallas Cowboys",
        "Denver Broncos",
        "Detroit Lions",
        "Green Bay Packers",
        "Houston Texans",
        "Indianapolis Colts",
        "Jacksonville Jaguars",
        "Kansas City Chiefs",
        "Miami Dolphins",
        "Minnesota Vikings",
        "New England Patriots",
        "New Orleans Saints",
        "New York Giants",
        "New York Jets",
        "Oakland Raiders",
        "Philadelphia Eagles",
        "Pittsburgh Steelers",
        "Saint Louis Rams",
        "San Diego Chargers",
        "San Francisco 49ers",
        "Seattle Seahawks",
        "Tampa Bay Buccaneers",
        "Tennessee Titans",
        "Washington Redskins"
    };
    private JComboBox awayTeam;
    private JComboBox homeTeam;
    private JComboBox pickTeam = new JComboBox(teamNames);

    /*
     * This is the constructor for the UserPanel class it builds the user
     * interface that first appears to the user when the application runs.
     */
    public UserPanel()
    {
        String result1 = "";
        String result2 = "";
        String result3 = "";
        String result4 = "";
        String result5 = "";

        calculateOne.setToolTipText("ALT-F to Calculate One Week");
        calculateOne.setMnemonic(KeyEvent.VK_O);

        calculateFive.setToolTipText("ALT-F to Calculate Five Weeks (Last 5 games of either 2012 or 2013 season)");
        calculateFive.setMnemonic(KeyEvent.VK_F);

        PopulatingComboBoxes();

        this.setBackground(Color.BLACK);

        this.setForeground(Color.WHITE);

        this.setLayout(new GridLayout(2,
                1));

        this.add(buildFiveWeekPanel());
        this.add(buildOneWeekPanel());

        homeTeam.setSelectedIndex(1);

        calculateOne.addActionListener(new ActionListenerCalculate());
        calculateFive.addActionListener(new ActionListenerCalculate());


        this.setVisible(true);
    }

    /*
     * This method sets result1 equal to the String passed to it.
     * 
     * @param results
     */
    public void setResultTextOne(String results)
    {
        result1 = results;
    }

    /*
     * This method sets result2 equal to the String passed to it.
     * 
     * @param results
     */
    public void setResultTextTwo(String results)
    {
        result2 = results;
    }

    /*
     * This method sets result3 equal to the String passed to it.
     * 
     * @param results
     */
    public void setResultTextThree(String results)
    {
        result3 = results;
    }

    /*
     * This method sets result4 equal to the String passed to it.
     * 
     * @param results
     */
    public void setResultTextFour(String results)
    {
        result4 = results;
    }

    /*
     * This method sets result5 equal to the String passed to it.
     * 
     * @param results
     */
    public void setResultTextFive(String results)
    {
        result5 = results;
    }

    /*
     * This method populates the JComboBoxes in the application so that they
     * will display all the NFL teams in them.
     */
    public void PopulatingComboBoxes()
    {
        awayTeam = new JComboBox(teamNames);
        homeTeam = new JComboBox(teamNames);

        awayTeam.setBackground(Color.WHITE);
        homeTeam.setBackground(Color.WHITE);
        pickTeam.setBackground(Color.WHITE);

        awayTeam.setForeground(Color.BLACK);
        homeTeam.setForeground(Color.BLACK);
        pickTeam.setForeground(Color.BLACK);

        awayTeamDesc.setForeground(Color.WHITE);
        homeTeamDesc.setForeground(Color.WHITE);
        pickTeamDesc.setForeground(Color.WHITE);

        awayTeam.addActionListener(new TeamActionListener());
        homeTeam.addActionListener(new TeamActionListener());
    }

    /*
     * This method builds the OneWeekButtonPanel
     * 
     * @return oneWeekTemp
     */
    public JPanel buildOneWeekPanel()
    {
        PopulatingComboBoxes();

        JPanel oneWeekCombo = new JPanel(new GridLayout(2,
                2));
        JPanel oneWeekButton = new JPanel();
        JPanel oneWeekTemp = new JPanel(new GridLayout(2,
                1));

        oneWeekCombo.add(awayTeamDesc);
        oneWeekCombo.add(awayTeam);
        oneWeekCombo.add(homeTeamDesc);
        oneWeekCombo.add(homeTeam);

        oneWeekCombo.setBackground(Color.BLACK);
        oneWeekButton.setBackground(Color.BLACK);

        oneWeekButton.add(calculateOne);

        oneWeekTemp.add(oneWeekCombo);

        oneWeekTemp.add(oneWeekButton);

        oneWeekTemp.setBackground(Color.BLACK);

        oneWeekTemp.setBorder(BorderFactory.createTitledBorder(null,
                "One Game Prediction",
                TitledBorder.CENTER,
                TitledBorder.CENTER,
                null,
                Color.WHITE));

        return oneWeekTemp;
    }

    /*
     * This method builds the OneWeekButtonPanel
     * 
     * @return fiveWeekTemp
     */
    public JPanel buildFiveWeekPanel()
    {
        PopulatingComboBoxes();

        JPanel fiveWeekCombo = new JPanel(new GridLayout(2,
                2));
        JPanel fiveWeekButton = new JPanel();
        JPanel fiveWeekTemp = new JPanel(new GridLayout(2,
                1));

        fiveWeekCombo.add(pickTeamDesc);
        fiveWeekCombo.add(pickTeam);

        fiveWeekCombo.setBackground(Color.BLACK);
        fiveWeekButton.setBackground(Color.BLACK);

        fiveWeekButton.add(calculateFive);

        fiveWeekTemp.add(fiveWeekCombo);

        fiveWeekTemp.add(fiveWeekButton);

        fiveWeekTemp.setBackground(Color.BLACK);

        fiveWeekTemp.setBorder(BorderFactory.createTitledBorder(null,
                "Five Week Prediction",
                TitledBorder.CENTER,
                TitledBorder.CENTER,
                null,
                Color.WHITE));

        return fiveWeekTemp;
    }

    /**
     * @return the calculateOne
     */
    public JButton getCalculateOne()
    {
        return calculateOne;
    }

    /**
     * @return the calculateFive
     */
    public JButton getCalculateFive()
    {
        return calculateFive;
    }

    /**
     * @return the count
     */
    public int getCount()
    {
        return count;
    }

    /*
     * This class implements the ActionListener interface. This classchecks to 
     * see if the user selects the same team and if so there are if statements 
     * in the actionPerformed() method found in this class to handle the
     * situation accordingly.
     */
    private class TeamActionListener
            implements ActionListener
    {

        @Override
        public void actionPerformed(ActionEvent e)
        {

            /*
             * This if statement checks to see if the user selected the same
             * team in both JComboBoxes and if so make sure to change the
             * homeTeam.setSelectedIndex property to another by checking where
             * the index is so the homeTeam.setSelectedIndex property does not
             * go out of bounds.
             */
            if (awayTeam.getSelectedIndex() == homeTeam.getSelectedIndex())
            {
                JOptionPane.showMessageDialog(null,
                        "Please select another team because this team is already selected in the away box",
                        "ERROR!",
                        1);
                if (homeTeam.getSelectedIndex() != 0)
                {
                    homeTeam.setSelectedIndex(awayTeam.getSelectedIndex() - 1);
                }

                if (homeTeam.getSelectedIndex() == 0)
                {
                    homeTeam.setSelectedIndex(awayTeam.getSelectedIndex() + 1);
                }
            }
        }
    }

    /*
     * This class implements the ActionListener interface and uses the
     * actionPerformed() method to see if the calculateOne or calculateFive
     * JButton has been clicked. After checking to see what has been clicked it 
     * calculates based on whether it is one game or the final five weeks of
     * the season.
     */
    private class ActionListenerCalculate
            implements ActionListener
    {

        @Override
        public void actionPerformed(ActionEvent e)
        {
            PredictOneWeek victor = new PredictOneWeek();
            PredictFiveWeeks five = new PredictFiveWeeks();
            FiveGameResultPanel resultsText;
            /*
             * This if statement checks to see if the calculateOne JButton was
             * clicked and then calls the calculateVictor() method in the 
             * PredictOneWeek class to make the prediction.
             */
            if (calculateOne == e.getSource())
            {
                victor.calculateVictor(awayTeam.getSelectedItem().
                        toString(),
                        homeTeam.getSelectedItem().
                        toString());
            }

            /*
             * This if statement checks to see if the calculateFive JButton was
             * clicked.
             */
            if (calculateFive == e.getSource())
            {
                count = 0;

                /*
                 * This part of the class contains if statements to check which 
                 * team has been selected and what year to get the statistics 
                 * from. Then the correct if statement calls the 
                 * calculateFiveWeekVictor() method in the PredictFiveWeeks 
                 * class to make the predictions.
                 */
                if (pickTeam.getSelectedItem() == "Arizona Cardinals" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(),
                            "New York Jets");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Seattle Seahawks");
                    count++;
                    five.calculateFiveWeekVictor("Detroit Lions", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Chicago Bears",
                            pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(),
                            "San Francisco 49ers");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Arizona Cardinals" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Philadelphia Eagles");
                    count++;
                    five.calculateFiveWeekVictor("Saint Louis Rams", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tennessee Titans");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Seattle Seahawks");
                    count++;
                    five.calculateFiveWeekVictor("San Francisco 49ers", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Atlanta Falcons" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("New Orleans Saints", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Carolina Panthers");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Giants");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Detroit Lions");
                    count++;
                    five.calculateFiveWeekVictor("Tampa Bay Buccaneers", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Atlanta Falcons" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Buffalo Bills");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Green Bay Packers");
                    count++;
                    five.calculateFiveWeekVictor("Washington Redskins", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Francisco 49ers");
                    count++;
                    five.calculateFiveWeekVictor("Carolina Panthers", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Baltimore Ravens" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Pittsburgh Steelers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Washington Redskins");
                    count++;
                    five.calculateFiveWeekVictor("Denver Broncos", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("New York Giants", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cincinnati Bengals");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Baltimore Ravens" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Pittsburgh Steelers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Minnesota Vikings", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Detroit Lions");
                    count++;
                    five.calculateFiveWeekVictor("New England Patriots", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cincinnati Bengals");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Buffalo Bills" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Jacksonville Jaguars", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Saint Louis Rams", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Seattle Seahawks", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Miami Dolphins");
                    count++;
                    five.calculateFiveWeekVictor("New York Jets", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Buffalo Bills" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Atlanta Falcons", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tampa Bay Buccaneers");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Jacksonville Jaguars");
                    count++;
                    five.calculateFiveWeekVictor("Miami Dolphins", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New England Patriots");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Carolina Panthers" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(),
                            "Kansas City Chiefs");
                    count++;
                    five.calculateFiveWeekVictor("Atlanta Falcons",
                            pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(),
                            "San Diego Chargers");
                    count++;
                    five.calculateFiveWeekVictor("Oakland Raiders",
                            pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(),
                            "New Orleans Saints");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Carolina Panthers" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Tampa Bay Buccaneers",
                            pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(),
                            "New Orleans Saints");
                    count++;
                    five.calculateFiveWeekVictor("New York Jets",
                            pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("New Orleans Saints",
                            pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(),
                            "Atlanta Falcons");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Chicago Bears" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Seattle Seahawks", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Minnesota Vikings");
                    count++;
                    five.calculateFiveWeekVictor("Green Bay Packers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Arizona Cardinals");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Detroit Lions");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Chicago Bears" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Minnesota Vikings");
                    count++;
                    five.calculateFiveWeekVictor("Dallas Cowboys", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cleveland Browns");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Philadelphia Eagles");
                    count++;
                    five.calculateFiveWeekVictor("Green Bay Packers", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Cincinnati Bengals" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Diego Chargers");
                    count++;
                    five.calculateFiveWeekVictor("Dallas Cowboys", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Philadelphia Eagles");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Pittsburgh Steelers");
                    count++;
                    five.calculateFiveWeekVictor("Baltimore Ravens", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Cincinnati Bengals" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Diego Chargers");
                    count++;
                    five.calculateFiveWeekVictor("Indianapolis Colts", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Pittsburgh Steelers");
                    count++;
                    five.calculateFiveWeekVictor("Minnesota Vikings", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Baltimore Ravens", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Cleveland Browns" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Oakland Raiders");
                    count++;
                    five.calculateFiveWeekVictor("Kansas City Chiefs", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Washington Redskins", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Denver Broncos");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Pittsburgh Steelers");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Cleveland Browns" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Jacksonville Jaguars", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New England Patriots");
                    count++;
                    five.calculateFiveWeekVictor("Chicago Bears", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Jets");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Pittsburgh Steelers");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Dallas Cowboys" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Philadelphia Eagles", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cincinnati Bengals");
                    count++;
                    five.calculateFiveWeekVictor("Pittsburgh Steelers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("New Orleans Saints", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Washington Redskins");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Dallas Cowboys" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Oakland Raiders", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Chicago Bears");
                    count++;
                    five.calculateFiveWeekVictor("Green Bay Packers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Washington Redskins");
                    count++;
                    five.calculateFiveWeekVictor("Philadelphia Eagles", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Denver Broncos" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Tampa Bay Buccaneers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Oakland Raiders");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Baltimore Ravens");
                    count++;
                    five.calculateFiveWeekVictor("Cleveland Browns", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Kansas City Chiefs", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Denver Broncos" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Kansas City Chiefs");
                    count++;
                    five.calculateFiveWeekVictor("Tennessee Titans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("San Diego Chargers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Houston Texans");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Oakland Raiders");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Detroit Lions" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Indianapolis Colts", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Green Bay Packers");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Arizona Cardinals");
                    count++;
                    five.calculateFiveWeekVictor("Atlanta Falcons", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Chicago Bears", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Detroit Lions" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Green Bay Packers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Philadelphia Eagles");
                    count++;
                    five.calculateFiveWeekVictor("Baltimore Ravens", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("New York Giants", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Minnesota Vikings");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Green Bay Packers" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Minnesota Vikings", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Detroit Lions", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Chicago Bears");
                    count++;
                    five.calculateFiveWeekVictor("Tennessee Titans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Minnesota Vikings");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Green Bay Packers" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Detroit Lions");
                    count++;
                    five.calculateFiveWeekVictor("Atlanta Falcons", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Dallas Cowboys");
                    count++;
                    five.calculateFiveWeekVictor("Pittsburgh Steelers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Chicago Bears");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Houston Texans" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tennessee Titans");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New England Patriots");
                    count++;
                    five.calculateFiveWeekVictor("Indianapolis Colts", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Minnesota Vikings", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Indianapolis Colts");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Houston Texans" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("New England Patriots", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Jacksonville Jaguars");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Indianapolis Colts");
                    count++;
                    five.calculateFiveWeekVictor("Denver Broncos", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tennessee Titans");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Indianapolis Colts" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Detroit Lions");
                    count++;
                    five.calculateFiveWeekVictor("Tennessee Titans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Houston Texans");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Kansas City Chiefs");
                    count++;
                    five.calculateFiveWeekVictor("Houston Texans", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Indianapolis Colts" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Tennessee Titans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cincinnati Bengals");
                    count++;
                    five.calculateFiveWeekVictor("Houston Texans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Kansas City Chiefs");
                    count++;
                    five.calculateFiveWeekVictor("Jacksonville Jaguars", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Jacksonville Jaguars" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Buffalo Bills");
                    count++;
                    five.calculateFiveWeekVictor("New York Jets", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Miami Dolphins");
                    count++;
                    five.calculateFiveWeekVictor("New England Patriots", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tennessee Titans");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Jacksonville Jaguars" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cleveland Browns");
                    count++;
                    five.calculateFiveWeekVictor("Houston Texans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Buffalo Bills", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Tennessee Titans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Indianapolis Colts");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Kansas City Chiefs" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Carolina Panthers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cleveland Browns");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Oakland Raiders");
                    count++;
                    five.calculateFiveWeekVictor("Indianapolis Colts", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Denver Broncos");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Kansas City Chiefs" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Denver Broncos", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Washington Redskins");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Oakland Raiders");
                    count++;
                    five.calculateFiveWeekVictor("Indianapolis Colts", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Diego Chargers");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Miami Dolphins" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("New England Patriots", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Francisco 49ers");
                    count++;
                    five.calculateFiveWeekVictor("Jacksonville Jaguars", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Buffalo Bills", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New England Patriots");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Miami Dolphins" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Jets");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Pittsburgh Steelers");
                    count++;
                    five.calculateFiveWeekVictor("New England Patriots", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Buffalo Bills");
                    count++;
                    five.calculateFiveWeekVictor("New York Jets", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Minnesota Vikings" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Green Bay Packers");
                    count++;
                    five.calculateFiveWeekVictor("Chicago Bears", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Saint Louis Rams");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Houston Texans");
                    count++;
                    five.calculateFiveWeekVictor("Green Bay Packers", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Minnesota Vikings" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Chicago Bears", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Baltimore Ravens");
                    count++;
                    five.calculateFiveWeekVictor("Philadelphia Eagles", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cincinnati Bengals");
                    count++;
                    five.calculateFiveWeekVictor("Detroit Lions", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "New England Patriots" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Miami Dolphins");
                    count++;
                    five.calculateFiveWeekVictor("Houston Texans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("San Francisco 49ers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Jacksonville Jaguars");
                    count++;
                    five.calculateFiveWeekVictor("Miami Dolphins", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "New England Patriots" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Houston Texans");
                    count++;
                    five.calculateFiveWeekVictor("Cleveland Browns", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Miami Dolphins");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Baltimore Ravens");
                    count++;
                    five.calculateFiveWeekVictor("Buffalo Bills", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "New Orleans Saints" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Atlanta Falcons");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Giants");
                    count++;
                    five.calculateFiveWeekVictor("Tampa Bay Buccaneers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Dallas Cowboys");
                    count++;
                    five.calculateFiveWeekVictor("Carolina Panthers", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "New Orleans Saints" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Seattle Seahawks");
                    count++;
                    five.calculateFiveWeekVictor("Carolina Panthers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Saint Louis Rams");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Carolina Panthers");
                    count++;
                    five.calculateFiveWeekVictor("Tampa Bay Buccaneers", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "New York Giants" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Washington Redskins");
                    count++;
                    five.calculateFiveWeekVictor("New Orleans Saints", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Atlanta Falcons");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Baltimore Ravens");
                    count++;
                    five.calculateFiveWeekVictor("Philadelphia Eagles", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "New York Giants" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Washington Redskins");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Diego Chargers");
                    count++;
                    five.calculateFiveWeekVictor("Seattle Seahawks", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Detroit Lions");
                    count++;
                    five.calculateFiveWeekVictor("Washington Redskins", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "New York Jets" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Arizona Cardinals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Jacksonville Jaguars");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tenessee Titans");
                    count++;
                    five.calculateFiveWeekVictor("San Diego Chargers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Buffalo Bills");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "New York Jets" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Miami Dolphins", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Oakland Raiders", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Carolina Panthers");
                    count++;
                    five.calculateFiveWeekVictor("Cleveland Browns", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Miami Dolphins");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Oakland Raiders" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Cleveland Browns", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Denver Broncos", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Kansas City Chiefs", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Carolina Panthers");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Diego Chargers");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Oakland Raiders" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Dallas Cowboys");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Jets");
                    count++;
                    five.calculateFiveWeekVictor("Kansas City Chiefs", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Diego Chargers");
                    count++;
                    five.calculateFiveWeekVictor("Denver Broncos", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Philadelphia Eagles" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Dallas Cowboys");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tampa Bay Buccaneers");
                    count++;
                    five.calculateFiveWeekVictor("Cincinnati Bengals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Washington Redskins", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Giants");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Philadelphia Eagles" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Arizona Cardinals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Detroit Lions", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Minnesota Vikings");
                    count++;
                    five.calculateFiveWeekVictor("Chicago Bears", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Dallas Cowboys");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Pittsburgh Steelers" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Baltimore Ravens");
                    count++;
                    five.calculateFiveWeekVictor("San Diego Chargers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Dallas Cowboys");
                    count++;
                    five.calculateFiveWeekVictor("Cincinnati Bengals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Cleveland Browns", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Pittsburgh Steelers" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Baltimore Ravens");
                    count++;
                    five.calculateFiveWeekVictor("Miami Dolphins", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Cincinnati Bengals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Green Bay Packers");
                    count++;
                    five.calculateFiveWeekVictor("Cleveland Browns", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Saint Louis Rams" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("San Francisco 49ers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Buffalo Bills");
                    count++;
                    five.calculateFiveWeekVictor("Minnesota Vikings", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tampa Bay Buccaneers");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Seattle Seahawks");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Saint Louis Rams" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Francisco 49ers");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Arizona Cardinals");
                    count++;
                    five.calculateFiveWeekVictor("New Orleans Saints", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Tampa Bay Buccaneers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Seattle Seahawks");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "San Diego Chargers" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Cincinnati Bengals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Pittsburgh Steelers");
                    count++;
                    five.calculateFiveWeekVictor("Carolina Panthers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Jets");
                    count++;
                    five.calculateFiveWeekVictor("Oakland Raiders", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "San Diego Chargers" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Cincinnati Bengals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("New York Giants", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Denver Broncos");
                    count++;
                    five.calculateFiveWeekVictor("Oakland Raiders", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Kansas City Chiefs", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "San Francisco 49ers" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Saint Louis Rams");
                    count++;
                    five.calculateFiveWeekVictor("Miami Dolphins", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New England Patriots");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Seattle Seahawks");
                    count++;
                    five.calculateFiveWeekVictor("Arizona Cardinals", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "San Francisco 49ers" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("Saint Louis Rams", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Seattle Seahawks", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Tampa Bay Buccaneers");
                    count++;
                    five.calculateFiveWeekVictor("Atlanta Falcons", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Arizona Cardinals");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Seattle Seahawks" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Chicago Bears");
                    count++;
                    five.calculateFiveWeekVictor("Arizona Cardinals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Buffalo Bills");
                    count++;
                    five.calculateFiveWeekVictor("San Francisco 49ers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Saint Louis Rams", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Seattle Seahawks" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("New Orleans Saints", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "San Francisco 49ers");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Giants");
                    count++;
                    five.calculateFiveWeekVictor("Arizona Cardinals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Saint Louis Rams", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Tampa Bay Buccaneers" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Denver Broncos");
                    count++;
                    five.calculateFiveWeekVictor("Philadelphia Eagles", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New Orleans Saints");
                    count++;
                    five.calculateFiveWeekVictor("Saint Louis Rams", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Atlanta Falcons");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Tampa Bay Buccaneers" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Carolina Panthers");
                    count++;
                    five.calculateFiveWeekVictor("Buffalo Bills", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("San Francisco 49ers", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Saint Louis Rams");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New Orleans Saints");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Tennessee Titans" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("Houston Texans", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Indianapolis Colts");
                    count++;
                    five.calculateFiveWeekVictor("New York Jets", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Green Bay Packers");
                    count++;
                    five.calculateFiveWeekVictor("Jacksonville Jaguars", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Tennessee Titans" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Indianapolis Colts");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Denver Broncos");
                    count++;
                    five.calculateFiveWeekVictor("Arizona Cardinals", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Jacksonville Jaguars");
                    count++;
                    five.calculateFiveWeekVictor("Houston Texans", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }

                if (pickTeam.getSelectedItem() == "Washington Redskins" && MainPanel.
                        getAnswer() == 0)
                {
                    five.calculateFiveWeekVictor("New York Giants", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Baltimore Ravens", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Cleveland Browns");
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Philadelphia Eagles");
                    count++;
                    five.calculateFiveWeekVictor("Dallas Cowboys", pickTeam.getSelectedItem().
                            toString());

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }
                if (pickTeam.getSelectedItem() == "Washington Redskins" && MainPanel.
                        getAnswer() == 1)
                {
                    five.calculateFiveWeekVictor("New York Giants", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor("Kansas City Chiefs", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "Atlanta Falcons");
                    count++;
                    five.calculateFiveWeekVictor("Dallas Cowboys", pickTeam.getSelectedItem().
                            toString());
                    count++;
                    five.calculateFiveWeekVictor(pickTeam.getSelectedItem().
                            toString(), "New York Giants");

                    resultsText = new FiveGameResultPanel(result1,
                            result2,
                            result3,
                            result4,
                            result5);
                }


            }
        }
    }
}
